import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import addgoods from '@/components/app01/addgoods'
import showgoods from '@/components/app01/showgoods'
import addcom from '@/components/app02/addcom'
import showcom from '@/components/app02/showcom'
import showcate from '@/components/app02/showcate'
import register from '@/components/app03/register'
import login from '@/components/app03/login'
import fristpage from '@/components/app03/fristpage'
import student from '@/components/app03/student'
import student2 from '@/components/app03/student2'
import logint from '@/components/app04/logint'
import showxin from '@/components/app04/showxin'
import ppll from '@/components/app04/ppll'
import showuser from '@/components/app04/showuser'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/addgoods',
      name: 'addgoods',
      component: addgoods
    },
    {
      path: '/showgoods',
      name: 'showgoods',
      component: showgoods
    },
    {
      path: '/addcom',
      name: 'addcom',
      component: addcom
    },
    {
      path: '/showcom',
      name: 'showcom',
      component: showcom
    },
    {
      path: '/showcate',
      name: 'showcate',
      component: showcate
    },
    {
      path: '/register',
      name: 'register',
      component: register
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/fristpage',
      name: 'fristpage',
      component: fristpage
    },
    {
      path: '/student/:id',
      name: 'student',
      component: student
    },
    {
      path: '/student2',
      name: 'student2',
      component: student2
    },
    {
      path: '/logint',
      name: 'logint',
      component: logint
    },
    {
      path: '/showxin',
      name: 'showxin',
      component: showxin
    },
    {
      path: '/ppll/:id',
      name: 'ppll',
      component: ppll
    },
    {
      path: '/showuser',
      name: 'showuser',
      component: showuser
    },

  ]
})
